package com.ruoyi.file.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 上传的文件列表业务对象 f_files
 *
 * @author ruoyi
 * @date 2023-03-12
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class FilesBo extends BaseEntity {

    /**
     * 文件列表ID
     */
    @NotNull(message = "文件列表ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 文件存放真实地址
     */
    @NotBlank(message = "文件存放真实地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String realPath;

    /**
     * 文件浏览映射地址
     */
    @NotBlank(message = "文件浏览映射地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String mapperPath;

    /**
     * 文件名
     */
    @NotBlank(message = "文件名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String flieName;

    /**
     * 文件大小
     */
    @NotNull(message = "文件大小不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileSize;

    /**
     * 文件类型
     */
    @NotBlank(message = "文件类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileType;


}
